import time

if __name__ == "__main__":
    ticks = time.time()
    print("当前时间戳为：", ticks)
    localtime = time.localtime(ticks)
    print("本地时间： ", localtime)
    localtime = time.asctime(time.localtime(time.time()))
    print("本地时间为: ", localtime)

    print("----------------------")
    print("time.altzone %d" % time.altzone)
    print("time.asctime(t) %s" % time.asctime(time.localtime()))
    print("time.ctime(): %s" % time.ctime())
    print("gmtime: ", time.gmtime())
    print("localtime: ", time.localtime())

    print("Start : %s" % time.ctime())
    time.sleep(5)
    print("End : %s" % time.ctime())